package com.auto.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@Entity
public class Art extends IdEntity {

	private String title;

	private String content;

	/*@ManyToMany(fetch = FetchType.EAGER,mappedBy = "arts")
	private Set<Task> tasks = Sets.newHashSet();*/

	/*public Set<Task> getTasks() {
		return tasks;
	}

	public void setTasks(Set<Task> tasks) {
		this.tasks = tasks;
	}*/

	public Art() {
	}

	@Temporal(TemporalType.TIMESTAMP)
	private Date timestamp;

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
}